home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13318 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  901 b 

  1. Path: prodigy.com!usenet
  2. From: vmuslin@prodigy.com (Victor Muslin)
  3. Newsgroups: comp.lang.c++
  4. Subject: File I/O Question
  5. Date: 24 Mar 1996 23:42:08 GMT
  6. Organization: Prodigy Services Company
  7. Message-ID: <4j4mkg$94s@stingray.prodigy.net>
  8. NNTP-Posting-Host: 192.203.241.84
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.6
  12.  
  13. Greetings. I am rather new to C++ streams. I read the C++ FAQ book and looked
  14. in a few other places, but could not find an answer to my question. Any help
  15. would be appreciated. Please e-mail me at vmuslin@prodigy.com in addition
  16. to posting the reply.
  17. Thanks.
  18.  
  19. I want to lock a file while I am writing to it and then release the lock when 
  20. I am done. In the old days of C I would've used flock(). How can I achieve the 
  21. same functionality with ofstream? And/or how can I get a file descriptor 
  22. corresponding to my file stream?
  23.  
  24. Thanks again.
  25.  
  26.